package bean;

import java.util.ArrayList;

public class Account {
    public int accountID; //账户ID
    public int coins = 0; // 金币
    public String password; // 密码
    public int points = 0;//经验值
//    public String degree; //学位
    public int level = 0;// 等级
    public String accountName;// 用户名
    //TESTdasg
    ArrayList<String> questionList = new ArrayList<>();
    ArrayList<String> answerList =new ArrayList<>();

    public void setQuestionList(ArrayList<String> questionList) {
        this.questionList = questionList;
    }

    public void setAnswerList(ArrayList<String> answerList) {
        this.answerList = answerList;
    }

    public ArrayList<String> getQuestionList() {
        return questionList;
    }

    public ArrayList<String> getAnswerList() {
        return answerList;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setLevel(int level) {
        this.level = points / 20;

    }

//    public void setDegree(String degree) {
//        this.degree = degree;
//    }

    public void setCoins(int coins) {
        this.coins = coins;
    }

    public void setAccountID(int accountID) {
        this.accountID = accountID;
    }

    public int getPoints() {
        return points;
    }

    public String getPassword() {
        return password;
    }

    public int getLevel() {
        return level;
    }

//    public String getDegree() {
//        if (level >= 0 && level <= 3) {
//            degree = "小学生";
//        }
//        if (level >= 4 && level <= 7) {
//            degree = "初中生";
//        }
//        if (level >= 8 && level <= 15) {
//            degree = "高中生";
//        }
//        if (level >= 16 && level <= 25) {
//            degree = "大学生";
//        }
//        if (level >= 26 && level <= 35) {
//            degree = "研究生";
//        }
//        if (level >= 36 && level <= 50) {
//            degree = "博士";
//        }
//        if (level >= 51 && level <= 70) {
//            degree = "教授";
//        }
//        if (level >= 71) {
//            degree = "院士";
//        }
//        return degree;
//    }

    public int getCoins() {
        return coins;
    }

    public int getAccountID() {
        return accountID;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountName() {
        return accountName;
    }

    public Account() {
        super();
    }
}